<form nz-form>
  <div nz-row [nzGutter]="24">
    <div nz-col [nzSpan]="12" *ngFor="let key of keys">
      <nz-form-item>
        <nz-form-label [nzSpan]="8" [nzFor]="key">{{key}}</nz-form-label>
        <nz-form-control [nzSpan]="16">
          <input nz-input [name]="key" type="text" [id]="key" [(ngModel)]="data[key]">
        </nz-form-control>
      </nz-form-item>
    </div>
  </div>
  <div nz-row [nzGutter]="24" nzAlign="middle" nzJustify="center">
    <button *ngIf="save" nz-button nzType="primary" (click)="doSave()">保存</button>
    <button *ngIf="edit" nz-button nzType="primary" (click)="doEdit()">修改</button>
  </div>
</form>